﻿using FluentNHibernate.Mapping;
using ReAnimation.Domain;


namespace ReAnimation.DAL.Mapping
{
    internal class AtomDescriptionMap: ClassMap<AtomDescription>
    {
        public AtomDescriptionMap()
        {
            Table("atoms");
            Id(x => x.Name).Column("name");
            Map(x => x.Radius).Column("radius");
            Map(x => x.Color).Column("color").CustomType(typeof (IntColorType));
        }
    }
}
